package hxs.events.flash.events;
import flash.events.EventDispatcher;
import hxs.extras.FlashEventsBase;
import hxs.extras.FlashEventsStore;
import hxs.extras.FlashSignal;
/**
 * ...
 * @author Tony Polinelli
 */
import flash.display.DisplayObject;
import flash.events.Event;

class EventDispatcherEvents extends FlashEventsBase
{
	public function new(target:EventDispatcher) 
	{
		super(target);
	}
	
	public static function getEvents(target:EventDispatcher):EventDispatcherEvents
	{
		return cast FlashEventsStore.getEvents(target);
	}
	
	/**/
	
	public var activate(getActivate, never):FlashSignal<Event>;
	private function getActivate():FlashSignal<Event>
	{
		return cast getNativeSignal(Event.ACTIVATE);
	}

	public var deactivate(getDeactivate, never):FlashSignal<Event>;
	private function getDeactivate():FlashSignal<Event>
	{	
		return cast getNativeSignal(Event.DEACTIVATE);
	}
	
}